package com.qiaofang.generator.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.qiaofang.generator.dao.dao.ReceivableDataDao;
import com.qiaofang.generator.dao.domain.ReceivableData;
import com.qiaofang.generator.service.service.ReceivableDataService;
import com.qiaofang.generator.stub.bean.ReceivableDataDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by generator on 2020年12月17日 上午11:41:08
 */
@Service
@Slf4j
public class ReceivableDataServiceImpl implements ReceivableDataService {

    @Autowired
    private ReceivableDataDao receivableDataDao;


    @Override
    public ReceivableDataDTO getReceivableDataByUuid(String uuid) {
        ReceivableDataDTO receivableDataDTO = new ReceivableDataDTO();
        ReceivableData domain = receivableDataDao.getReceivableDataByUuid(uuid);
        BeanUtil.copyProperties(domain, receivableDataDTO, true);
        return receivableDataDTO;
    }



}
